/**
 * pharma-model - 9 janv. 2011 guillaume
 */
package org.bspv.pharma.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * @author guillaume
 */
@Entity
@Table(name = "ORDER_CORRECTION")
public class OrderCorrection extends Event {

    /**
     * serialVersionUID.
     */
    private static final long serialVersionUID = 1L;

    /**
     * Commande concernée par la correction.
     */
    @NotNull
    @ManyToOne
    private Order order;

    /**
     * @return the order
     */
    public final Order getOrder() {
        return order;
    }

    /**
     * @param order
     *            the order to set
     */
    public final void setOrder(final Order order) {
        this.order = order;
    }

    /**
     * @return the eventType
     */
    public EventTypeEnum getEventType() {
        return EventTypeEnum.ORDER_CORRECTION;
    }
}
